Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface System.​Collections.​Generic.​IReadOnlySet<​T>
Assembly: System.Runtime
Implemented Interfaces
- IReadOnlyCollection`1 (Inherits: IEnumerable<​T>IEnumerable)
Provides a readonly abstraction of a set.
Methods
bool
Contains​(T item)
Determines if the set contains a specific item.
Returns <see langword="true" /> if found; otherwise <see langword="false" /> .
item
The item to check if the set contains.
bool
IsProperSubsetOf​(IEnumerable<​T> other)
Determines whether the current set is a proper (strict) subset of a specified collection.
Returns <see langword="true" /> if the current set is a proper subset of other; otherwise <see langword="false" /> .
other
The collection to compare to the current set.
bool
IsProperSupersetOf​(IEnumerable<​T> other)
Determines whether the current set is a proper (strict) superset of a specified collection.
Returns <see langword="true" /> if the collection is a proper superset of other; otherwise <see langword="false" /> .
other
The collection to compare to the current set.
bool
IsSubsetOf​(IEnumerable<​T> other)
Determine whether the current set is a subset of a specified collection.
Returns <see langword="true" /> if the current set is a subset of other; otherwise <see langword="false" /> .
other
The collection to compare to the current set.
bool
IsSupersetOf​(IEnumerable<​T> other)
Determine whether the current set is a super set of a specified collection.
Returns <see langword="true" /> if the current set is a super set of other; otherwise <see langword="false" /> .
other
The collection to compare to the current set.
bool
Overlaps​(IEnumerable<​T> other)
Determines whether the current set overlaps with the specified collection.
Returns <see langword="true" /> if the current set and other share at least one common element; otherwise, <see langword="false" /> .
other
The collection to compare to the current set.
bool
SetEquals​(IEnumerable<​T> other)
Determines whether the current set and the specified collection contain the same elements.
Returns <see langword="true" /> if the current set is equal to other; otherwise, <see langword="false" /> .
other
The collection to compare to the current set.